{% extends "pc/layout.html" %} {% block content %}
<link rel="stylesheet" href="/css/pc/video_detail.css">

<div id="bast">
    <span id="sp" style="opacity: 0;">{{videodetail}}</span>
    <div id="video" class="content"></div>
</div>

<script>
    
    let video = document.getElementById('video');
    let sp = document.getElementById('sp');
    // 创建节点
    // bast.innerHTML = '<iframe src="//player.bilibili.com/player.html?aid=890000661&bvid=BV1FP4y1p7GK&cid=396636765&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>'
    console.log(sp.innerText);
    video.innerHTML = sp.innerText
</script>
{% endblock %}